﻿#ifndef DAOLOGININFO_H
#define DAOLOGININFO_H

#include "src/helper/dbsqlite.h"

#include "src/middle/models/dbmodels.h"

class DaoLoginInfo
{
public:
    virtual bool             exists(const QString& secretId) = 0;
    virtual void             insert(const LoginInfo& info)   = 0;
    virtual void             update(const LoginInfo& info)   = 0;
    virtual void             remove(const QString& secretId) = 0;
    virtual QList<LoginInfo> select()                        = 0;

    virtual void connect()     = 0;
    virtual void createTable() = 0;
};

#endif   // DAOLOGININFO_H
